﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="MaterialPriceList.aspx.cs" Inherits="Ewts.BaseData.MaterialPriceList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">

<h2 style="text-align:center; font-size:14px; height=45px;">原料价格信息</h2>
<br />
    <asp:Repeater ID="reptMaterial" runat="server">
        <HeaderTemplate>
            <table id="tbMaterial" width="100%" cellpadding="0" cellspacing="0" border="1">
                <thead>
                    <tr>
                        <th>原料名称</th>
                        <th>人民币价格</th>
                        <th>美金价格</th>
                        <th>新币价格</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
                    <tr>
                        <td><%# GetMaName(Eval("materialid").ToString())%></td>
                        <td><%# Eval("RMBPrice")%></td>
                        <td><%# Eval("USPrice")%></td>
                        <td><%# Eval("SGDPrice")%></td>
                        <td>
                            <a href="MaterialPriceShow.aspx?id=<%# Eval("id")%>">详细</a>
                            <a href="MaterialPriceModify.aspx?id=<%# Eval("id")%>">编辑</a>
                        </td>
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
            </table>
        </FooterTemplate>
    </asp:Repeater>

    <script type="text/javascript">

        $(document).ready(function () {

            $('#tbMaterial').dataTable({ "oLanguage":
                { "sUrl": "/jquery/jquery.dataTable.cn.txt" },

                "iDisplayLength": 10,
                "bSort": true,

                "aaSorting": [[0, "asc"]]
            });

        });
 
</script>
</asp:Content>
